package com.dao;

import com.pojo.CartItem;

import java.sql.SQLException;
import java.util.List;

public interface CartDao {

    Long findCountByUidAndPid(String pid,long uid);

    void addCart(String pid,long uid,int num) throws SQLException;

    int updateNum(String pid,long uid,int num) throws SQLException;

    List<CartItem> findCartByUid(long uid);

    void deleteCart(long uid);
}
